/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package pe.com.minam.beans;

import java.io.Serializable;
import java.math.BigDecimal;
import java.math.BigInteger;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author Alvaro
 */
@Entity
@Table(name = "SCAMAP_ESTACION")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "ScamapEstacion.findAll", query = "SELECT s FROM ScamapEstacion s"),
    @NamedQuery(name = "ScamapEstacion.findByIdEsta", query = "SELECT s FROM ScamapEstacion s WHERE s.idEsta = :idEsta"),
    @NamedQuery(name = "ScamapEstacion.findByVNomEsta", query = "SELECT s FROM ScamapEstacion s WHERE s.vNomEsta = :vNomEsta"),
    @NamedQuery(name = "ScamapEstacion.findByNLonGeo", query = "SELECT s FROM ScamapEstacion s WHERE s.nLonGeo = :nLonGeo"),
    @NamedQuery(name = "ScamapEstacion.findByNLatGeo", query = "SELECT s FROM ScamapEstacion s WHERE s.nLatGeo = :nLatGeo"),
    @NamedQuery(name = "ScamapEstacion.findByNAltitud", query = "SELECT s FROM ScamapEstacion s WHERE s.nAltitud = :nAltitud"),
    @NamedQuery(name = "ScamapEstacion.findByNUtm18X", query = "SELECT s FROM ScamapEstacion s WHERE s.nUtm18X = :nUtm18X"),
    @NamedQuery(name = "ScamapEstacion.findByNUtm18Y", query = "SELECT s FROM ScamapEstacion s WHERE s.nUtm18Y = :nUtm18Y"),
    @NamedQuery(name = "ScamapEstacion.findByVUbicacion", query = "SELECT s FROM ScamapEstacion s WHERE s.vUbicacion = :vUbicacion"),
    @NamedQuery(name = "ScamapEstacion.findByCodiDepaDpt", query = "SELECT s FROM ScamapEstacion s WHERE s.codiDepaDpt = :codiDepaDpt"),
    @NamedQuery(name = "ScamapEstacion.findByCodiProvTpr", query = "SELECT s FROM ScamapEstacion s WHERE s.codiProvTpr = :codiProvTpr"),
    @NamedQuery(name = "ScamapEstacion.findByCodiDistTdi", query = "SELECT s FROM ScamapEstacion s WHERE s.codiDistTdi = :codiDistTdi"),
    @NamedQuery(name = "ScamapEstacion.findByIdTipoesta", query = "SELECT s FROM ScamapEstacion s WHERE s.idTipoesta = :idTipoesta"),
    @NamedQuery(name = "ScamapEstacion.findByIdEstado", query = "SELECT s FROM ScamapEstacion s WHERE s.idEstado = :idEstado"),
    @NamedQuery(name = "ScamapEstacion.findByIdTrans", query = "SELECT s FROM ScamapEstacion s WHERE s.idTrans = :idTrans"),
    @NamedQuery(name = "ScamapEstacion.findByIdResp", query = "SELECT s FROM ScamapEstacion s WHERE s.idResp = :idResp"),
    @NamedQuery(name = "ScamapEstacion.findByIdInstitucion", query = "SELECT s FROM ScamapEstacion s WHERE s.idInstitucion = :idInstitucion"),
    @NamedQuery(name = "ScamapEstacion.findByVCodOrigen", query = "SELECT s FROM ScamapEstacion s WHERE s.vCodOrigen = :vCodOrigen"),
    @NamedQuery(name = "ScamapEstacion.findByIdUser", query = "SELECT s FROM ScamapEstacion s WHERE s.idUser = :idUser")})
public class ScamapEstacion implements Serializable {
    private static final long serialVersionUID = 1L;
    // @Max(value=?)  @Min(value=?)//if you know range of your decimal fields consider using these annotations to enforce field validation
    @Id
    @Basic(optional = false)
    @NotNull
    @Column(name = "ID_ESTA")
    private BigDecimal idEsta;
    @Size(max = 50)
    @Column(name = "V_NOM_ESTA")
    private String vNomEsta;
    @Column(name = "N_LON_GEO")
    private BigDecimal nLonGeo;
    @Column(name = "N_LAT_GEO")
    private BigDecimal nLatGeo;
    @Column(name = "N_ALTITUD")
    private BigDecimal nAltitud;
    @Column(name = "N_UTM18_X")
    private BigDecimal nUtm18X;
    @Column(name = "N_UTM18_Y")
    private BigDecimal nUtm18Y;
    @Size(max = 300)
    @Column(name = "V_UBICACION")
    private String vUbicacion;
    @Size(max = 2)
    @Column(name = "CODI_DEPA_DPT")
    private String codiDepaDpt;
    @Size(max = 2)
    @Column(name = "CODI_PROV_TPR")
    private String codiProvTpr;
    @Size(max = 2)
    @Column(name = "CODI_DIST_TDI")
    private String codiDistTdi;
    @Column(name = "ID_TIPOESTA")
    private BigInteger idTipoesta;
    @Column(name = "ID_ESTADO")
    private BigInteger idEstado;
    @Column(name = "ID_TRANS")
    private BigInteger idTrans;
    @Column(name = "ID_RESP")
    private BigInteger idResp;
    @Column(name = "ID_INSTITUCION")
    private BigInteger idInstitucion;
    @Size(max = 8)
    @Column(name = "V_COD_ORIGEN")
    private String vCodOrigen;
    @Column(name = "ID_USER")
    private BigInteger idUser;

    public ScamapEstacion() {
    }

    public ScamapEstacion(BigDecimal idEsta) {
        this.idEsta = idEsta;
    }

    public BigDecimal getIdEsta() {
        return idEsta;
    }

    public void setIdEsta(BigDecimal idEsta) {
        this.idEsta = idEsta;
    }

    public String getVNomEsta() {
        return vNomEsta;
    }

    public void setVNomEsta(String vNomEsta) {
        this.vNomEsta = vNomEsta;
    }

    public BigDecimal getNLonGeo() {
        return nLonGeo;
    }

    public void setNLonGeo(BigDecimal nLonGeo) {
        this.nLonGeo = nLonGeo;
    }

    public BigDecimal getNLatGeo() {
        return nLatGeo;
    }

    public void setNLatGeo(BigDecimal nLatGeo) {
        this.nLatGeo = nLatGeo;
    }

    public BigDecimal getNAltitud() {
        return nAltitud;
    }

    public void setNAltitud(BigDecimal nAltitud) {
        this.nAltitud = nAltitud;
    }

    public BigDecimal getNUtm18X() {
        return nUtm18X;
    }

    public void setNUtm18X(BigDecimal nUtm18X) {
        this.nUtm18X = nUtm18X;
    }

    public BigDecimal getNUtm18Y() {
        return nUtm18Y;
    }

    public void setNUtm18Y(BigDecimal nUtm18Y) {
        this.nUtm18Y = nUtm18Y;
    }

    public String getVUbicacion() {
        return vUbicacion;
    }

    public void setVUbicacion(String vUbicacion) {
        this.vUbicacion = vUbicacion;
    }

    public String getCodiDepaDpt() {
        return codiDepaDpt;
    }

    public void setCodiDepaDpt(String codiDepaDpt) {
        this.codiDepaDpt = codiDepaDpt;
    }

    public String getCodiProvTpr() {
        return codiProvTpr;
    }

    public void setCodiProvTpr(String codiProvTpr) {
        this.codiProvTpr = codiProvTpr;
    }

    public String getCodiDistTdi() {
        return codiDistTdi;
    }

    public void setCodiDistTdi(String codiDistTdi) {
        this.codiDistTdi = codiDistTdi;
    }

    public BigInteger getIdTipoesta() {
        return idTipoesta;
    }

    public void setIdTipoesta(BigInteger idTipoesta) {
        this.idTipoesta = idTipoesta;
    }

    public BigInteger getIdEstado() {
        return idEstado;
    }

    public void setIdEstado(BigInteger idEstado) {
        this.idEstado = idEstado;
    }

    public BigInteger getIdTrans() {
        return idTrans;
    }

    public void setIdTrans(BigInteger idTrans) {
        this.idTrans = idTrans;
    }

    public BigInteger getIdResp() {
        return idResp;
    }

    public void setIdResp(BigInteger idResp) {
        this.idResp = idResp;
    }

    public BigInteger getIdInstitucion() {
        return idInstitucion;
    }

    public void setIdInstitucion(BigInteger idInstitucion) {
        this.idInstitucion = idInstitucion;
    }

    public String getVCodOrigen() {
        return vCodOrigen;
    }

    public void setVCodOrigen(String vCodOrigen) {
        this.vCodOrigen = vCodOrigen;
    }

    public BigInteger getIdUser() {
        return idUser;
    }

    public void setIdUser(BigInteger idUser) {
        this.idUser = idUser;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (idEsta != null ? idEsta.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof ScamapEstacion)) {
            return false;
        }
        ScamapEstacion other = (ScamapEstacion) object;
        if ((this.idEsta == null && other.idEsta != null) || (this.idEsta != null && !this.idEsta.equals(other.idEsta))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "pe.com.minam.beans.ScamapEstacion[ idEsta=" + idEsta + " ]";
    }
    
}
